<%
	var Adrotator=Class.create()
		Adrotator.prototype=
		{
			initialize:function($options)
			{
				this.object=Server.CreateObject('MSWC.Adrotator');
				this.path=($options.path||'');
				this.clickable=this.object.clickable=($options.clickable==false ? false:true);
				this.border=this.object.border=($options.border||0);
				this.targetframe=this.object.targetframe=($options.targetframe||'_blank');
				this.isshow=$options.isshow;				
				
				if(this.isshow==true)
					print(this.getAdvertisement(this.path));
			},
			getAdvertisement:function($path)
			{
				return this.object.GetAdvertisement($path);
			},			
			get:function($property)
			{
				if(($property in this.object)==false)		
					throw new Error(cusErrors_0099_ADO$Global);
					
				$property=($property.toLowerCase());
				if($property in this.object) this[$property]=this.object[$property];				
				return this.object[$property];
			},			
			set:function($property,$value)
			{
				if(($property in this.object)==false)
					throw new Error(cusErrors_0099_ADO$Global);
					
				$property=($property.toLowerCase());				
				this[$property]=$value;
				return this.object[$property]=$value;
			},
			show:function()
			{
				print(this.getAdvertisement(this.path));	
			},
			close:function()
			{
				try
				{
					for(var iProperty in this)
						this[iProperty]=null;
				}catch(e)
				{}
			}
		};
%>